package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.AuxiliaryFanHistoryMapper;
import com.ruoyi.control.domain.AuxiliaryFanHistory;
import com.ruoyi.control.service.IAuxiliaryFanHistoryService;

/**
 * 局扇历史Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-03
 */
@Service
public class AuxiliaryFanHistoryServiceImpl extends ServiceImpl<AuxiliaryFanHistoryMapper, AuxiliaryFanHistory> implements IAuxiliaryFanHistoryService //修改
{
    @Autowired
    private AuxiliaryFanHistoryMapper auxiliaryFanHistoryMapper;

    /**
     * 查询局扇历史
     * 
     * @param id 局扇历史主键
     * @return 局扇历史
     */
    @Override
    public AuxiliaryFanHistory selectAuxiliaryFanHistoryById(String id)
    {
        return auxiliaryFanHistoryMapper.selectAuxiliaryFanHistoryById(id);
    }

    /**
     * 查询局扇历史列表
     * 
     * @param auxiliaryFanHistory 局扇历史
     * @return 局扇历史
     */
    @Override
    public List<AuxiliaryFanHistory> selectAuxiliaryFanHistoryList(AuxiliaryFanHistory auxiliaryFanHistory)
    {
        return auxiliaryFanHistoryMapper.selectAuxiliaryFanHistoryList(auxiliaryFanHistory);
    }

    /**
     * 新增局扇历史
     * 
     * @param auxiliaryFanHistory 局扇历史
     * @return 结果
     */
    @Override
    public int insertAuxiliaryFanHistory(AuxiliaryFanHistory auxiliaryFanHistory)
    {
        return auxiliaryFanHistoryMapper.insertAuxiliaryFanHistory(auxiliaryFanHistory);
    }

    /**
     * 修改局扇历史
     * 
     * @param auxiliaryFanHistory 局扇历史
     * @return 结果
     */
    @Override
    public int updateAuxiliaryFanHistory(AuxiliaryFanHistory auxiliaryFanHistory)
    {
        auxiliaryFanHistory.setUpdateTime(DateUtils.getNowDate());
        return auxiliaryFanHistoryMapper.updateAuxiliaryFanHistory(auxiliaryFanHistory);
    }

    /**
     * 批量删除局扇历史
     * 
     * @param ids 需要删除的局扇历史主键
     * @return 结果
     */
    @Override
    public int deleteAuxiliaryFanHistoryByIds(String[] ids)
    {
        return auxiliaryFanHistoryMapper.deleteAuxiliaryFanHistoryByIds(ids);
    }

    /**
     * 删除局扇历史信息
     * 
     * @param id 局扇历史主键
     * @return 结果
     */
    @Override
    public int deleteAuxiliaryFanHistoryById(String id)
    {
        return auxiliaryFanHistoryMapper.deleteAuxiliaryFanHistoryById(id);
    }
}
